<?php
  //Genesis Software Manual - Page 1

  $pdf->AddPage();
  //$pdf->Image('./Genesis/Gen-soft/Gsm-14.png',0,0,210 ,297);
  //add_raster(1);


  $pdf->SetDrawColor(0,0,0);
  $pdf->SetTextColor(0,0,0);
  $pdf->SetFont('arial','',10);
  $pdf->SetLineWidth(0.4);

  set_text_space(4.3);
 
  $margin = array
  (
    'tab_1' => 30,
    'tab_2' => 36,
    'tab_3' => 44,
    'tab_4' => 54,
    'tab_5' => 74
    
  );
  
//======================================================================================================================
  new_line(33);
    $pdf->Bookmark('5. Patern Name Table Base Address for Scroll B',2,current_line() - 10);
    $pdf->Text($margin['tab_2'],current_line(),'5.');
    $pdf->Text($margin['tab_2'] + 6,current_line(),'PATERN NAME TABLE BASE ADDRESS FOR SCROLL B');

  new_line();
  new_line();
  new_line();
    $pdf->Text($margin['tab_2'] +2,current_line() + 5,'REG. #4');
    gentab_BitField_8($margin['tab_4'],current_line(),14,7,
      array('0','0','0','0','0','SB15','SB14','SB13'));
  new_line();
    $pdf->Text($margin['tab_4'],current_line(),'VRAM ADDR %XXX0_0000_0000_0000');
  new_line();
  new_line();


    $pdf->Bookmark('6. Sprite Attribute Table Base Address',2,current_line() - 10);
    $pdf->Text($margin['tab_2'],current_line(),'6.');
    $pdf->Text($margin['tab_2'] + 6,current_line(),'SPRITE ATTRIBUTE TABLE BASE ADDRESS');
  new_line();
  new_line();
  new_line();
    $pdf->Text($margin['tab_2'] +2,current_line() + 5,'REG. #5');
    gentab_BitField_8($margin['tab_4'],current_line(),14,7,
      array('0','AT15','AT14','AT13','AT12','AT11','AT10','AT9'));
  new_line();
    $pdf->Text($margin['tab_4'],current_line(),'AT9 should be 0 in H40 cell mode');
  new_line();
    $pdf->Text($margin['tab_4'],current_line(),'VRAM ADDR %XXXX_XXX0_0000_0000 (32 cell)');
  new_line();
    $pdf->Text($margin['tab_4'],current_line(),'VRAM ADDR %XXXX_XX00_0000_0000 (40 cell)');
  new_line();
  new_line();
  new_line();
    $pdf->Text($margin['tab_2'] +2,current_line() + 5,'REG. #6');
    gentab_BitField_8($margin['tab_4'],current_line(),14,7,
      array('0','0','0','0','0','0','0','0'));
  new_line();
  new_line();


//======================================================================================================================
    $pdf->Bookmark('7. Background Color',2,current_line() - 10);
    $pdf->Text($margin['tab_2'],current_line(),'7.');
    $pdf->Text($margin['tab_2'] + 6,current_line(),'BACKGROUND COLOR');

  new_line();
  new_line();
  new_line();
    $pdf->Text($margin['tab_2'] +2,current_line() + 5,'REG. #7');
    gentab_BitField_8($margin['tab_4'],current_line(),14,7,
      array('0','0','CPT1','CPT0','COL3','COL2','COL1','COL0'));
  new_line();
    $pdf->Text($margin['tab_4'],current_line(),'CPT 1,0:');
    $pdf->Text($margin['tab_4'] + 20,current_line(),'COLOR PALLET');
  new_line();
    $pdf->Text($margin['tab_4'],current_line(),'COL 3~0:');
    $pdf->Text($margin['tab_4'] + 20,current_line(),'COLOR CODE');

  new_line();
  new_line();
  new_line();
    $pdf->Text($margin['tab_2'] +2,current_line() + 5,'REG. #8');
    gentab_BitField_8($margin['tab_4'],current_line(),14,7,
      array('0','0','0','0','0','0','0','0'));
  new_line();
  new_line();
    $pdf->Text($margin['tab_2'] +2,current_line() + 5,'REG. #9');
    gentab_BitField_8($margin['tab_4'],current_line(),14,7,
      array('0','0','0','0','0','0','0','0'));
  new_line();
  new_line();


//======================================================================================================================
    $pdf->Bookmark('8. H Interrupt Register',2,current_line() - 10);
    $pdf->Text($margin['tab_2'],current_line(),'8.');
    $pdf->Text($margin['tab_2'] + 6,current_line(),'H INTERRUPT REGISTER');
  new_line();
  new_line();
  new_line();
    $pdf->Text($margin['tab_2'] +2,current_line() + 4,'REG. #10');
    gentab_BitField_8($margin['tab_4'],current_line(),14,7,
      array('HIT7','HIT6','HIT5','HIT4','HIT3','HIT2','HIT1','HIT0'));
  new_line();
    $pdf->Text($margin['tab_4'],current_line(),'This register makes H interrupt timing by number of ?aster');
    $pdf->Text($margin['tab_4'],new_line(),'H interrupt is enabled by IE = 1');
  
  
  add_footer($pdf,'02/19/92','14');
?>
